package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Organization;
import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(@Param("product") Product product, @Param("organization") Organization organization);

    Product selectByPrimaryKey(Long id);

    List<Product> selectAll();

    int updateByPrimaryKey(@Param("product") Product product, @Param("organization") Organization organization);

    int query4Count(QueryObject qo);

    List<?> query4List(QueryObject qo);

    List<Product> selectProductByOrganizationId(Long id);



}